﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;
using System.Data.Entity;
using eStudying.Core.Objects;


namespace eStudying.Repository.Repository
{
    public class ChooseQuestionRepository
    {
        EStudyingContext context;

        public ChooseQuestionRepository()
        {

            this.context = new EStudyingContext();
        }
            public void Add(ChooseQuestion coQuestion)
        {

            context.ChooseQuestions.Add(coQuestion);
            context.SaveChanges();
        }
    }
}
